namespace AuditSample
{
    using System;
    using System.Data.Entity;
    using System.ComponentModel.DataAnnotations.Schema;
    using System.Linq;

    public partial class Model1 : DbContext
    {
        public Model1()
            : base("name=Model1")
        {
            this.Configuration.AutoDetectChangesEnabled = true;
            this.Configuration.ValidateOnSaveEnabled = true;
            this.Configuration.LazyLoadingEnabled = false;
            this.Configuration.ProxyCreationEnabled = false;
        }

        static Model1 _Instance;
        public static Model1 Instance()
        {
            if (_Instance == null)
                _Instance = new Model1();
            return _Instance;
        }

        public virtual DbSet<WorkFlowHistory> WorkFlowHistories { get; set; }
        public virtual DbSet<WorkFlowInstance> WorkFlowInstances { get; set; }

        protected override void OnModelCreating(DbModelBuilder modelBuilder)
        {
        }
    }
}
